//
//  StarRatingView.h
//  danpin
//
//  Created by chuangjia on 22/9/15.
//  Copyright © 2015 chuangjia. All rights reserved.
//

#import <UIKit/UIKit.h>
@class StarRatingView;

@protocol StarRatingViewDelegate <NSObject>

@optional
-(void)starRatingView:(StarRatingView *)view score:(float)score;

@end

@interface StarRatingView : UIView

- (id)initWithFrame:(CGRect)frame numberOfStar:(int)number;
@property (nonatomic, readonly) int numberOfStar;
@property (nonatomic, weak) id <StarRatingViewDelegate> delegate;

@end